#define _CRT_SECURE_NO_WARNINGS 1
#include "SList.h"
void testSList() {
	SListNode* pSList = NULL;
	SListPushBack(&pSList, 4);
	SListPushBack(&pSList, 5);
	SListPushBack(&pSList, 6);
	SListPrint(pSList); // 4 5 6 
	SListPushFront(&pSList, 3);
	SListPushFront(&pSList, 2);
	SListPushFront(&pSList, 1);
	SListPrint(pSList);// 1 2 3 4 5 6 
	SListPopBack(&pSList);
	SListPopFront(&pSList);
	SListPrint(pSList);//  2 3 4 5 
	SListInsertAfter(pSList, 1);
	SListPrint(pSList);// 2 1 3 4 5 
	SListEraseAfter(pSList);
	SListPrint(pSList);// 2 3 4 5 
	SListDestroy(&pSList);

}
int main() {
	testSList();
	return 0;
}